import request from '@/utils/request'

export const getOrderCount = (start, end) => {
  return request.get('/api/order-service/report/orderCount', {
    params: {
      start, end
    }
  })
}

export const getOrderAmount = (start, end) => {
  return request.get('/api/order-service/report/orderAmount', {
    params: {
      start, end
    }
  })
}

export const getAmountCollect = (type, start, end) => {
  return request.get(`/api/order-service/report/amountCollect/${type}/${start}/${end}`)
}

export const getRegionCollect = (start, end) => {
  return request.get(`/api/order-service/report/regionCollect/${start}/${end}`)
}

export const getSkuTop = (topValue, start, end) => {
  return request.get(`/api/order-service/report/skuTop/${topValue}/${start}/${end}`)
}
